package cn.cheln.explorer.actions.sort;

import cn.cheln.explorer.config.Config;

public class DBSort
  implements Sort
{
  public static String ORDERBY = " order by ";
  public int policy = -1;
  public int seq = -1;
  public String strPolicy;
  public String strSeq;

  public DBSort(int paramInt1, int paramInt2)
  {
    this.policy = paramInt1;
    this.seq = paramInt2;
    setPolicy(paramInt1);
    setSeq(paramInt2);
  }

  public Object getContent()
  {
    return getPolicyContent().toString() + getSeqContent().toString();
  }

  public int getPolicy()
  {
    return this.policy;
  }

  public Object getPolicyContent()
  {
    return " " + this.strPolicy + " ";
  }

  public int getSeq()
  {
    return this.seq;
  }

  public Object getSeqContent()
  {
    return " " + this.strSeq + " ";
  }

  public void setPolicy(int paramInt)
  {
    switch (paramInt)
    {
    default:
    case 0:
    case 2:
    case 1:
    case 3:
    case 5:
    case 6:
    case 4:
    }
    while (true)
    {
      label44: this.policy = paramInt;
      return;
      this.strPolicy = "upper(sort_key)";
      continue;
      this.strPolicy = "_size";
      continue;
      this.strPolicy = "date_modified";
      continue;
      this.strPolicy = "mime_type";
      continue;
      this.strPolicy = " album ";
      continue;
      if (Config.isLewaRom);
      for (String str = " artist_sort_key "; ; str = " artist ")
      {
        this.strPolicy = str;
        break label44:
      }
      this.strPolicy = "upper(_display_name)";
    }
  }

  public void setSeq(int paramInt)
  {
    switch (paramInt)
    {
    default:
    case 0:
    case 1:
    }
    while (true)
    {
      this.seq = paramInt;
      return;
      this.strSeq = "asc";
      continue;
      this.strSeq = "desc";
    }
  }

  public Sort transfer(String paramString)
  {
    return this;
  }
}

/* Location:           H:\360云盘\lewa_explorer_3.0\bin\FileApp_orig_dex2jar.jar
 * Qualified Name:     cn.cheln.explorer.actions.sort.DBSort
 * JD-Core Version:    0.5.2
 */